<?php


namespace app\api\controller;


class Sq extends  Index
{
    /*
     *
     * 媒体矩阵管理
     * 媒体专家栏申请
     */
    public function index(){
        //查询地址
        $model=new\app\admin\model\Sq;
        $str=$model
            ->join('tplay_duty','tplay_sq.duty_id=tplay_duty.id')
            ->join('tplay_sex','tplay_sq.sex_id=tplay_sex.id')
            ->field('tplay_sq.id,tplay_sex.sex,tplay_duty.duty,tplay_sq.name,tplay_sq.mtname,
            tplay_sq.zw,tplay_sq.gsdz,tplay_sq.yx,tplay_sq.http,tplay_sq.wx,tplay_sq.jj,tplay_sq.thumb
            ')
            ->where(1)
            ->limit(0,10)
            ->select();
        return json([200,'成功',$str]);
    }
}